//package cn.com.zetatech.loader.service.impl;
//
//import cn.com.zetatech.loader.common.message.ResolverMessage;
//import cn.com.zetatech.loader.service.BigFileResolverRecordService;
//import cn.com.zetatech.loader.entity.BigFileResolverRecord;
//import com.google.gson.Gson;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//
//import javax.annotation.Resource;
//import java.util.List;
//
//@Service
//@Slf4j
//public class BigFileResolverRecordServiceImpl implements BigFileResolverRecordService {
//
//    @Autowired
//    private Gson gson;
//    @Resource
//    private BigFileResolverRecordMapper bigFileResolverRecordMapper;
//
//    @Override
//    public List<BigFileResolverRecord> getRecords(int limit) {
//        return bigFileResolverRecordMapper.getRecords(limit);
//    }
//
//    @Override
//    public void saveBigFileResolverRecord(ResolverMessage resolverMessage, String remoteFileId, String remoteFilePath, long fileSize) {
//        BigFileResolverRecord record = new BigFileResolverRecord();
//        record.setId(remoteFileId);
//        record.setKafkaMessage(gson.toJson(resolverMessage));
//        record.setFileName(remoteFilePath);
//        record.setFileSize(String.valueOf(fileSize));
//        record.setStatus("00");
//        bigFileResolverRecordMapper.insertBigFileResolverRecord(record);
//    }
//
//    @Override
//    public void updateBigFileResolverRecord(BigFileResolverRecord record) {
//        bigFileResolverRecordMapper.updateBigFileResolverRecord(record);
//    }
//}
